package cn.coder.jdbc2.config;

import java.util.ArrayList;
import java.util.List;

public class BoundSql {
	private String originalSql;

	private List<ParameterMapping> parameterMappings = new ArrayList<>();

	public BoundSql(String originalSql, List<ParameterMapping> parameterMappings) {
		super();
		this.originalSql = originalSql;
		this.parameterMappings = parameterMappings;
	}

	public String getOriginalSql() {
		return originalSql;
	}

	public void setOriginalSql(String originalSql) {
		this.originalSql = originalSql;
	}

	public List<ParameterMapping> getParameterMappings() {
		return parameterMappings;
	}

	public void addParameterMapping(ParameterMapping parameterMapping) {
		this.parameterMappings.add(parameterMapping);
	}
}
